import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import { appStore, userStore } from './modules'

export const piniaStore = createPinia().use(piniaPluginPersistedstate)

export const useStore = () => ({
  useAppStore: appStore,
  useUserStore: userStore
})

export { appStore as useAppStore, userStore as useUserStore }
